package band.wukong.practice.urule.sample1.entity;

import com.bstek.urule.model.Label;

import java.util.Date;
import java.util.List;

/**
 * 会员
 *
 * @author wukong(wukonggg@139.com)
 */
public class Customer {

    public static final String LEVEL_BRONZE = "1";
    public static final String LEVEL_SILVER = "2";
    public static final String LEVEL_GOLD = "3";
    public static final String LEVEL_PLATINUM = "4";
    public static final String LEVEL_DIAMOND = "5";

    @Label("客户名称")
    private String name;

    @Label("客户年龄")
    private int age;

    @Label("出生日期")
    private Date birth;

    @Label("客户等级")
    private String level;

    @Label("婚否")
    private boolean married;

    @Label("是否有房")
    private boolean hasHouse;

    @Label("是否有车")
    private boolean hasCar;

    private List<Order> orders;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public boolean isMarried() {
        return married;
    }

    public void setMarried(boolean married) {
        this.married = married;
    }

    public boolean isHasHouse() {
        return hasHouse;
    }

    public void setHasHouse(boolean hasHouse) {
        this.hasHouse = hasHouse;
    }

    public boolean isHasCar() {
        return hasCar;
    }

    public void setHasCar(boolean hasCar) {
        this.hasCar = hasCar;
    }

    public List<Order> getOrders() {
        return orders;
    }

    public void setOrders(List<Order> orders) {
        this.orders = orders;
    }

    @Override
    public String toString() {
        return "Member{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", birth=" + birth +
                ", level='" + level + '\'' +
                ", married=" + married +
                ", hasHouse=" + hasHouse +
                ", hasCar=" + hasCar +
                ", orders=" + orders +
                '}';
    }
}
